package cn.com.headfree.aoutdata.controller;

import cn.com.headfree.aoutdata.service.OutDataService;
import cn.com.headfree.base.controller.ExBaseController;
import cn.com.headfree.base.controller.ResultData;
import cn.com.headfree.entity.TEmpBaseInfo;
import cn.com.headfree.entity.isc.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * @Description: TODO
 * @Author wcSun
 * @Date 2021/9/27
 **/
@Controller
@RequestMapping(value = "/outData", produces = "application/json;charset=UTF-8")
public class OutDataContrller extends ExBaseController {

    @Autowired
    private OutDataService outDataService;

    @RequestMapping("/import")
    @ResponseBody
    public ResultData inmport(String orgId) {
        ResultData rs = new ResultData();
        //导组织机构
        outDataService.impoDept(orgId);
        outDataService.importEmbase();
        return rs;
    }
}
